package java44th.group.mapper;

import java.sql.Timestamp;
import java.util.LinkedList;
import java.util.List;
import java44th.group.bean.po.MarketAdmin;
import java44th.group.bean.po.MarketAdminExample;
import java44th.group.bean.admin.vo.admin.MarketAdminVo;
import org.apache.ibatis.annotations.Param;

public interface MarketAdminMapper {
    long countByExample(MarketAdminExample example);

    int deleteByExample(MarketAdminExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketAdmin row);

    int insertSelective(MarketAdmin row);

    List<MarketAdmin> selectByExample(MarketAdminExample example);

    MarketAdmin selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("row") MarketAdmin row, @Param("example") MarketAdminExample example);

    int updateByExample(@Param("row") MarketAdmin row, @Param("example") MarketAdminExample example);

    int updateByPrimaryKeySelective(MarketAdmin row);

    int updateByPrimaryKey(MarketAdmin row);


    //查询数据库market_admin中所有的数据
    LinkedList<MarketAdminVo> selectAllData(String username);

    Integer selectAdminByUsername(String username);

    Timestamp selectAddTimeById(Integer id);

    String selectUsernameById(Integer id);

}